var oBtn = document.querySelector(".login-btn");
var aTe = document.getElementsByTagName("input");

oBtn.onclick = function(){
    if(!(localStorage.hasOwnProperty("username"))){
        alert("请先注册!");
        return false;
    }
    else if(localStorage.getItem("username")!=aTe[0].value || localStorage.getItem("userpwd")!=aTe[1].value){
        alert("用户名和密码不正确，请重新输入！");
        return false;
    }
}




